
package com.be.beadmin.material.repository;

import com.be.beadmin.material.entity.PurchaseOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zmy
* @date 2023-05-14
**/
public interface PurchaseOrderRepository extends JpaRepository<PurchaseOrder, String>, JpaSpecificationExecutor<PurchaseOrder> {

    PurchaseOrder findPurchaseOrderByIdAndDelete(String id, Integer delete);

    PurchaseOrder findPurchaseOrderById(String id);


    List<PurchaseOrder> findPurchaseOrdersByInfoIdAndDelete(String infoId,int delete);

    PurchaseOrder findPurchaseOrderByErpOrderNoAndDelete(String erpNo,int delete);


    PurchaseOrder findPurchaseOrderByPo(String poIdentification);
}